package org.example.day01;

public class MyThread extends Thread{
    @Override
    public void run() {
        super.run();
        System.out.println("this is my Thread");
    }

    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("运行结束");
    }
}
